function FillTaskList(szUrl, nodeList)
{
	function fillTaskList(content, szJobName, szTaskId, szStatus) {
		var result = '<small><a href="../view/task-'+szJobName+'-'+szTaskId+'.html" class="list-group-item">';

		result += FillStatus.print(szStatus);

		result += "&nbsp;"+szJobName;

		result += "<br>" + content;

		result += '</a></small>';

		return result;
	}



	var taskFactory = new TaskFactory();

	var nodeTaskList = jQuery(nodeList);
	var timeoutInterval = 5000; // 5s

	function requestTaskList() {
		nodeTaskList.html("");

		dataResult = taskFactory.getJsonResult(szUrl);

		jQuery.each(dataResult.list, function(index, value) {
			var node = fillTaskList(index + "- " + value.taskId, value.jobName, value.taskId, value.status);
			var lastValue=nodeTaskList.html();
			nodeTaskList.html(node+lastValue);			
		});

	}
	;

	requestTaskList();
	setInterval(requestTaskList, timeoutInterval);
}